ActionController::Routing::Routes.draw do |map|

  NapTime::Routing.use(map)

  map.with_options(:controller => "items") do |m|
    m.items     'lists/:name/items', :action => "collection"
    m.new_item  'lists/:name/items/new', :action => "new"
    m.item      'lists/:name/items/:id', :action => "member"
    m.edit_item 'lists/:name/items/:id/edit', :action => "edit"
  end

end